package com.qfjy.homework.panhongbing;

/**
 * @author : 筱卤蛋
 * @data : 2022/6/29 19:29
 */
public class Test {
    public static void main(String[] args) {
        Context context = new Context(new RectangleArea());
        int x = context.executeNumber(1, 2);
        System.out.println("长方形面积为：" + x);

        Context context1 = new Context(new RectanglePerimeter());
        int y = context1.executeNumber(1, 2);
        System.out.println("长方形周长为：" + y);
    }
}
